package com.artPreter.service.impl;


import com.artPreter.mapper.ArtworkOtherPicMapper;
import com.artPreter.pojo.Artwork;
import com.artPreter.pojo.ArtworkOtherPic;
import com.artPreter.service.IArtworkOtherPicService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 艺术品额外图片表 服务实现类
 * </p>
 *
 * @author jarvis
 * @since 2025-01-14
 */
@Service
public class ArtworkOtherPicServiceImpl extends ServiceImpl<ArtworkOtherPicMapper, ArtworkOtherPic> implements IArtworkOtherPicService {

    @Override
    public List<ArtworkOtherPic> getArtworkAllPicList(Artwork artwork) {

        LambdaQueryWrapper<ArtworkOtherPic> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(ArtworkOtherPic::getArtworkId, artwork.getArtworkId());
        List<ArtworkOtherPic> artworkOtherPicList1 = this.baseMapper.selectList(lambdaQueryWrapper);

        return artworkOtherPicList1;
    }
}
